import request from '@/utils/request'
import Vue from "vue";

export function addTranscodeConfig(data) { 
	return request({
		method: 'post',
		headers: {
			apiType: 4
		},
		url: 'hn-search/v1/params/config/set',
		data,
	})
}

export function getAllTrans() { //查询
	return request({
		method: 'get',
		url: '/video-server/v1/video/trans/allTrans',
		headers: {
			apiType: 4
		},
		// 'http://47.101.197.7:3131/'
	})
}

export function updateTrans(data) { //修改
	return request({
		method: 'post',
		url: '/video-server/v1/video/trans/updateTrans',
		headers: {
			apiType: 4
		},
		data
	})
}